<div class="main">
    <h1 class="title">Submissions</h1>
    Click the time to view the submission
    <table id="problem_list" class="list main" cellpadding="0px" cellspacing="1px">
        <tr>
            <th>Time</th>
            <th>Problem</th>
            <th>Status</th>
        </tr>
        <?if (($submissions == NULL) || (count($submissions) == 0)):?>
        <tr class="empty">
            <td colspan="3">There is no submission right now</td>
        </tr>
        <?else:?>
        <?$i = 0;?>
        <?foreach($submissions as $submission):?>
        <tr class="<?=text::alternate('odd','even')?> problem">
            <td><?=html::anchor(url::site('submissions/view/'.$submission->token), '<b>'.$submission->submit_time.'</b>')?></td>
            <td><?=html::anchor(url::site('problems/view/'.$submission->problem->token), '<b>'.$submission->problem->get_property('title')).'</b>'?></td>
            <td><?=($submission->get_grade_content('verdict'))?></td>
        </tr>
        <?endforeach;?>
        <?endif;?>
    </table>
</div>